<template>
    <div>
        <el-form style="margin-top: 4em;">
            <el-form-item label="配置内容">
                <el-select v-model="search.category" @change="changeType">
                    <el-option v-for="item in cateList" :label="item.name" :key="item.enName" :value="item.enName"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <mavon-editor
                        v-model="editForm.doc"
                        @change="changeData"
                        :subfield="prop.subfield"
                        :defaultOpen="prop.defaultOpen"
                        :toolbarsFlag="prop.toolbarsFlag"
                        :editable="prop.editable"
                        :scrollStyle="prop.scrollStyle"
                        style="height: 100%;width: 100%;z-index:1;"
                ></mavon-editor>
            </el-form-item>
            <el-button type="success" @click="subForm">
                提交保存
            </el-button>
        </el-form>
    </div>
</template>

<script>
  import {data} from '@/contentjs/contract.js'

  export default data
</script>

<style scoped>

</style>
